import util from '../../../../utils/util';

const app = getApp()

Page({
  data: {
    noticelist:{}
  },

  onLoad() {
    // var that = this;
    this.getNoticelist();
	},
	onShow(){
	  var that = this;
	  
	},
	getNoticelist(){
		var that = this;
		util.get(`loadNotice`,response=>{
		  // TIPS: 为0不一般是失败么
		  if (response) {
		      that.setData({
				  noticelist: response.data
			  });
		  }
		})
	}

})
